public class UT_AllEntitlementListController {

    static testMethod void ContactEntitlementListController_Test(){
            UT_SObjectFactory.InterconnectedSObjectsForContact sobs = new UT_SObjectFactory.InterconnectedSObjectsForContact();
        
            ContactEntitlementListController ext = new ContactEntitlementListController(sobs.c);
            system.debug(ext.getContactName());            

            for(EntitlementList.EntitlementWrapper ent : ext.getEntitlement()){
                system.debug(ent.getNewCaseFuncName());
                system.debug(ent.getCasesRemaining());
                system.debug(ent.getContractNumber());
                system.debug(ent.getButtonCaption());
                system.debug(ent.getContractLinkMode());
                system.debug(ent.getNewCaseFuncName());
                system.debug(ent.getRendered());
            }
            ext.getNoEntitlement();                                 
        }
    
    static testMethod void AssetEntitlementListController_Test(){
        UT_SObjectFactory.InterconnectedSObjectsAssetContract sobs = new UT_SObjectFactory.InterconnectedSObjectsAssetContract();
        UT_SObjectFactory.InterconnectedSObjectsAssetContract sobs2 = new UT_SObjectFactory.InterconnectedSObjectsAssetContract();
        Asset[] allAst = new Asset[]{ sobs.ass, sobs2.ass }; //[Select Id, Name, Account.Id from Asset];     
        for(Asset a : allAst){
            AssetEntitlementListController ext = new AssetEntitlementListController(a);
            List<EntitlementList.EntitlementWrapper> myLst = ext.getEntitlement();
            //system.debug(ext.getSpList().size());
            //system.debug(ext.getAllSpList().size());
            for(EntitlementList.EntitlementWrapper ent : myLst){
                system.debug(ent.getNewCaseFuncName());
                system.debug(ent.getCasesRemaining());
                system.debug(ent.getContractNumber());
                system.debug(ent.getButtonCaption());
                system.debug(ent.getContractLinkMode());
                system.debug(ent.getNewCaseFuncName());
                system.debug(ent.getRendered());
            }
            ext.getNoEntitlement();
        }
    }
    
    static testMethod void ContractEntitlementListController_Test(){
        UT_SObjectFactory.InterconnectedSObjectsAssetContract sobs = new UT_SObjectFactory.InterconnectedSObjectsAssetContract();
        UT_SObjectFactory.InterconnectedSObjectsAssetContract sobs2 = new UT_SObjectFactory.InterconnectedSObjectsAssetContract();
        Contract[] allCntr = new Contract[]{ sobs.contr, sobs2.contr };
        for(Contract c : allCntr){
            ContractEntitlementListController ext = new ContractEntitlementListController(c);
            List<EntitlementList.EntitlementWrapper> myLst = ext.getEntitlement();
            //system.debug(ext.getSpList().size());
            //system.debug(ext.getAllSpList().size());
            for(EntitlementList.EntitlementWrapper ent : myLst){
                system.debug(ent.getNewCaseFuncName());
                system.debug(ent.getCasesRemaining());
                system.debug(ent.getContractNumber());
                system.debug(ent.getButtonCaption());
                system.debug(ent.getContractLinkMode());
                system.debug(ent.getNewCaseFuncName());
                system.debug(ent.getRendered());
            }
            ext.getNoEntitlement();
        }
    }

}